import java.math.BigDecimal;
import java.util.List;
import java.util.logging.Logger;

public class AppTest 
{
  public static void main(String[] args) throws Exception 
  {
    // System.out.println("Hello, World!");
    Logger logger = Logger.getLogger(AppTest.class.getName());

    CashCard cashCard = new CashCard();
    {
      // 提现
      cashCard.withdrawal("100001", new BigDecimal(100));
      // 储蓄
      cashCard.recharge("100001", new BigDecimal(100));
      // 交易流水
      List<String> tradeFlow = cashCard.tradeFlow();
      logger.info("查询交易流水，" + tradeFlow);
    }
        
    CreditCard creditCard = new CreditCard();
    {
      // 支付
      creditCard.withdrawal("100001", new BigDecimal(100));
      // 还款
      creditCard.recharge("100001", new BigDecimal(100));
      // 交易流水
      List<String> tradeFlow = creditCard.tradeFlow();
      logger.info("查询交易流水，" + tradeFlow);
    }
  }
}
